// vim:sw=4:ai:aw
#pragma once
#ifndef	__BestFit_h__
#define	__BestFit_h__

#include "Area.h"
#include "Allocator.h"
#include "LinkedList.h"

#include <map>

//using namespace std;

class BestFit: public Allocator {
public:
    BestFit();
	virtual ~BestFit();

	const Area * alloc(int wanted); // gebied vragen
	void free(const Area * ap); // gebied teruggeven
	void setSize(int new_size);

private:
    std::map<int,const Area*>* processes;
    LinkedList* holes;
};


#endif	/*BestFit_h*/
